home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-03-04 | 1.0 KB | 33 lines | [TEXT/ToyS] |
- set dW to display drawing titled "Test" with dimensions {300, 150}
-
- draw a box into dW ¬
- inside of {0, 0, 300, 150} ¬
- filling it with the pen ¬
- using state {fg color:"994422"}
-
- draw a polygon into dW ¬
- using data {{150, 0}, {300, 75}, {150, 150}, {0, 75}} ¬
- filling it with the pen ¬
- using state {fg color:"224499"}
-
- draw a polygon into dW ¬
- using data {{75, 25}, {225, 50}, {75, 75}, {75, 50}} ¬
- filling it with the pen ¬
- using state {fg color:"229922"}
-
- set diamond to capture picture from dW
-
- store image diamond in (((path to desktop folder) as string) & "Test Diamond")
- set the icon of (((path to desktop folder) as string) & "Test Diamond") to diamond
-
- set diamond to rotate image diamond by 450 -- Rotate 45 degrees
- display drawing dW with disposal
- set dW to display drawing titled "Rotated" starting with diamond
-
- pause for 60
-
- save clipping diamond in (((path to desktop folder) as string) & "Test Diamond II")
- set the icon of (((path to desktop folder) as string) & "Test Diamond II") to diamond
-
- display drawing dW with disposal
-